import './Activity.scss';
import React, { PureComponent as Component } from 'react';
import TimeTree from '../../../components/DubboTimeLine/TimeLine';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
@connect(state => {
  return {
    uid: state.user.uid + '',
    curdata: state.dubboMethod.curMethod,
    currProject: state.dubboProject.currProject
  };
})
class Activity extends Component {
  constructor(props) {
    super(props);
  }
  static propTypes = {
    uid: PropTypes.string,
    getMockUrl: PropTypes.func,
    match: PropTypes.object,
    curdata: PropTypes.object,
    currProject: PropTypes.object
  };
  render() {
    return (
      <div className="g-row">
        <section className="news-box m-panel">
          <div style={{ display: 'none' }} className="logHead">
            {/*<Breadcrumb />*/}
            <div className="projectDes">
              <p>高效、易用、可部署的API管理平台</p>
            </div>
          </div>
          <TimeTree type={'dubboproject'} typeid={+this.props.match.params.id} />
        </section>
      </div>
    );
  }
}

export default Activity;
